package com.ruoyi.broadcast.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.broadcast.mapper.GbssHistoryMapper;
import com.ruoyi.broadcast.domain.GbssHistory;
import com.ruoyi.broadcast.service.IGbssHistoryService;

/**
 * 广播历史Service业务层处理
 * 
 * @author hcc
 * @date 2024-12-01
 */
@Service
public class GbssHistoryServiceImpl extends ServiceImpl<GbssHistoryMapper, GbssHistory> implements IGbssHistoryService //修改
{
    @Autowired
    private GbssHistoryMapper gbssHistoryMapper;

    /**
     * 查询广播历史
     * 
     * @param broadcastRealId 广播历史主键
     * @return 广播历史
     */
    @Override
    public GbssHistory selectGbssHistoryByBroadcastRealId(String broadcastRealId)
    {
        return gbssHistoryMapper.selectGbssHistoryByBroadcastRealId(broadcastRealId);
    }

    /**
     * 查询广播历史列表
     * 
     * @param gbssHistory 广播历史
     * @return 广播历史
     */
    @Override
    public List<GbssHistory> selectGbssHistoryList(GbssHistory gbssHistory)
    {
        return gbssHistoryMapper.selectGbssHistoryList(gbssHistory);
    }

    /**
     * 新增广播历史
     * 
     * @param gbssHistory 广播历史
     * @return 结果
     */
    @Override
    public int insertGbssHistory(GbssHistory gbssHistory)
    {
        return gbssHistoryMapper.insertGbssHistory(gbssHistory);
    }

    /**
     * 修改广播历史
     * 
     * @param gbssHistory 广播历史
     * @return 结果
     */
    @Override
    public int updateGbssHistory(GbssHistory gbssHistory)
    {
        return gbssHistoryMapper.updateGbssHistory(gbssHistory);
    }

    /**
     * 批量删除广播历史
     * 
     * @param broadcastRealIds 需要删除的广播历史主键
     * @return 结果
     */
    @Override
    public int deleteGbssHistoryByBroadcastRealIds(String[] broadcastRealIds)
    {
        return gbssHistoryMapper.deleteGbssHistoryByBroadcastRealIds(broadcastRealIds);
    }

    /**
     * 删除广播历史信息
     * 
     * @param broadcastRealId 广播历史主键
     * @return 结果
     */
    @Override
    public int deleteGbssHistoryByBroadcastRealId(String broadcastRealId)
    {
        return gbssHistoryMapper.deleteGbssHistoryByBroadcastRealId(broadcastRealId);
    }
}
